#!/bin/bash

source $HOME/.bashrc

jhost="0.0.0.0"
if [ ! -z $JHOST ]
then
    jhost=$JHOST
fi

jport="4000"
if [ ! -z $JPORT ]
then
    jport=$JPORT
fi

siteHome=$SITE_HOME

cd $siteHome
jekyll serve --host $jhost --port $jport &
jekyll build -incremental --watch

sleep infinity
